package ee.mtiidla.data;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

/**
 * Created by Marko on 12.10.2014.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class Relay {

	@XmlAttribute(name = "agemin")
	private int minAge;

	@XmlAttribute(name = "agemax")
	private int maxAge;

	@XmlAttribute(name = "gender")
	private String gender;

	@XmlAttribute(name = "name")
	private String name;

	@XmlAttribute(name = "number")
	private int number;

	@XmlElement(name = "CLUB")
	private Club club;

	@XmlElementWrapper(name="ENTRIES")
	@XmlElement(name="ENTRY")
	private List<Entry> entries;

	@XmlElementWrapper(name="RELAYPOSITIONS")
	@XmlElement(name="RELAYPOSITION")
	private List<RelayPosition> relayPositions;

	@XmlElementWrapper(name="RESULTS")
	@XmlElement(name="RESULT")
	private List<Result> results;

	public int getMaxAge() {
		return maxAge;
	}

	public void setMaxAge(int maxAge) {
		this.maxAge = maxAge;
	}

	public int getMinAge() {
		return minAge;
	}

	public void setMinAge(int minAge) {
		this.minAge = minAge;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public Club getClub() {
		return club;
	}

	public void setClub(Club club) {
		this.club = club;
	}

	public List<Entry> getEntries() {
		return entries;
	}

	public void setEntries(List<Entry> entries) {
		this.entries = entries;
	}

	public List<RelayPosition> getRelayPositions() {
		return relayPositions;
	}

	public void setRelayPositions(List<RelayPosition> relayPositions) {
		this.relayPositions = relayPositions;
	}

	public List<Result> getResults() {
		return results;
	}

	public void setResults(List<Result> results) {
		this.results = results;
	}
}
